package io.renren.modules.bs.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.bs.dao.BsExtractRecordDetailDao;
import io.renren.modules.bs.entity.BsExtractRecordDetailEntity;
import io.renren.modules.bs.service.BsExtractRecordDetailService;
import io.renren.modules.bs.vo.ExtractRecordDetailVo;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service("bsExtractRecordDetailService")
public class BsExtractRecordDetailServiceImpl extends ServiceImpl<BsExtractRecordDetailDao, BsExtractRecordDetailEntity> implements BsExtractRecordDetailService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BsExtractRecordDetailEntity> page = this.page(
                new Query<BsExtractRecordDetailEntity>().getPage(params),
                new QueryWrapper<BsExtractRecordDetailEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<ExtractRecordDetailVo> listByRecordId(Long recordId) {
        return this.baseMapper.listByRecordId(recordId);
    }

}